package tal.cdm.client.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
@RequestMapping("/tal")
public class Test {

    @Value("${server.port}")
    private String serverPort;

    @Resource
    private RestTemplate template;

    @RequestMapping("t1")
    public String test1(){
        return template.getForObject("http://nacosServer/tal/t1", String.class);
    }
}
